/**
 * Project: springyounger.lottery.web
 * 
 * File Created at 2010-3-21
 * $Id$
 * 
 * Copyright 2009 Zjut Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Zjut Edu. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Zjut Edu.
 */
package com.springyouner.lottery.framework;

import java.io.Serializable;

import com.springyounger.lottery.dal.dataobject.User;

/**
 * UserForm
 * 
 * @author springyounger
 */
public class UserForm implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 4643987682499395056L;

    private User              user;
    private boolean           newUser;
    private String            repeatedPassword;

    public UserForm() {
        user = new User();
        newUser = true;
    }

    public UserForm(User u) {
        user = u;
        newUser = false;
    }

    /**
     * @return the user
     */
    public User getUser() {
        return user;
    }

    /**
     * @return the isNewUser
     */
    public boolean isNewUser() {
        return newUser;
    }

    /**
     * @return the repeatedPassword
     */
    public String getRepeatedPassword() {
        return repeatedPassword;
    }

    /**
     * @param repeatedPassword the repeatedPassword to set
     */
    public void setRepeatedPassword(String repeatedPassword) {
        this.repeatedPassword = repeatedPassword;
    }
}
